
$(document).ready(function(){
     //CYCLE
     $('.beeCodes-slider').cycle({
          fx: 'scrollHorz',
          delay: 1,
          startingSlide: 2,
          fastOnEvent: 1000,
          timeout: 4000,
          speed: 4000,
          pause: false,
          backwards:  true
     });

     $('.beeCodes-slide-3').cycle({
          fx: 'scrollHorz',
          fxFn:  null,
          delay: 1,
          startingSlide: 3,
          fastOnEvent:   1000,
          timeout: 4000,
          speed: 4000,
          pause: false,
          backwards:  true
     });

     $('.beeCodes-slide-1').cycle({
          fx: 'scrollHorz',
          delay: 1,
          startingSlide: 1,
          fastOnEvent:   1000,
          timeout: 4000,
          speed: 4000,
          pause: false,
          backwards:  true
     });

     $('.beeCodes-content-scroll').cycle({
          fx: 'scrollVert',
          delay: 1,
          startingSlide: 2,
          fastOnEvent: 1000,
          timeout: 4000,
          speed: 4000,
          pause: false,
          backwards:  true
     });

     //HOVER
     $('.beeCodes-frame-hover-3').hover(
          function() {
               $('.beeCodes-hover-3').fadeIn();
          },
          function() {
               $('.beeCodes-hover-3').fadeOut();
          }
          );
     $('.beeCodes-frame-hover-1').hover(
          function() {
               $('.beeCodes-hover-1').fadeIn();
          },
          function() {
               $('.beeCodes-hover-1').fadeOut();
          }
          );
     $('.beeCodes-general-frame').hover(
          function() {
               $('.beeCodes-hover-2,.beeCodes-content-scroll').fadeIn();
          }
          ,
          function() {
               $('.beeCodes-hover-2,.beeCodes-content-scroll').fadeOut();
          }
          );

     // CLICKED
     $('.beeCodes-frame-hover-1').click(function() {
          $('.beeCodes-slide-1, .beeCodes-slide-3, .beeCodes-slider, .beeCodes-content-scroll').cycle('prev')
          ;
          return false;
     });
     $('.beeCodes-frame-hover-3').click(function() {
          $('.beeCodes-slide-1, .beeCodes-slide-3, .beeCodes-slider, .beeCodes-content-scroll').cycle('next')
          ;
          return false;
     });
});